home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / September 96 / Re How to solve access excep.1 < prev    next >
Encoding:
Internet Message Format  |  1996-09-19  |  1.6 KB  |  [TEXT/ttxt]

  1. Subject:     Re: How to solve access exception during part close?
  2. Sent:        9/17/96 3:46 PM
  3. Received:    9/17/96 3:46 PM
  4. From:        bobc@bcstec.ca.boeing.com (Bob Carpenter)
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List
  7.  
  8.  
  9. > Do you get any kind of stack crawl?
  10.   No, only the "access exception" message.
  11.  
  12. > FW_NEW handles exceptions during object construction (and some related
  13. > stuff). It doesn't make an object garbage-collectable or anything like
  14. > that. Therefore whether something is allocated with FW_NEW or ::new, you
  15. > still have to delete it (there is no FW_DELETE; regular delete suffices for
  16. > both). ODF handles this for window objects.
  17.   Thanks for the explanation.
  18.  
  19. > >Any ideas on how I can solve this?
  20. > Some people are distressed that I have to make this suggestion, but I've
  21. > found it to be extremely effective at times: use the debugging build of
  22. > OpenDoc and put the symbol files (on DR5) in the OpenDoc libraries folder,
  23. > and keep them open in the debugger. You'll get stack crawls going back
  24. > through OpenDoc when a crash occurs.
  25.  
  26.   I've decided to redo my project using the Form template, since it has
  27.   many of the features (subviews, NewDocumentWindow, Resource Usage...)
  28.   that I need. Starting with the Hello template was turning out to
  29.   be a bit much. The one feature of "Hello" I need is the Drag&Drop of
  30.   text display, so I'll probably have some problems with that. 
  31.  
  32.   Thanks Mark. I'll probably have some questions next week on Drag&Drop.
  33.  
  34.  
  35. -- 
  36.  
  37. --BobC
  38.  
  39.   Bob Carpenter
  40.   Boeing Commercial Airplanes
  41.   bob.carpenter@boeing.com